import 'package:enterprise_v6_app/app/data/common/choice_bean.dart';

class StandardizationRiskInspectMenuType implements ChoiceBean {
  StandardizationRiskInspectMenuType(this.name);

  final String name;

  bool isChecked = false;

  static final regulation = StandardizationRiskInspectMenuType('隐患制度');
  static final rectification = StandardizationRiskInspectMenuType('隐患整改通报信息');
  static List<StandardizationRiskInspectMenuType> get all => [regulation, rectification];

  @override
  String getId() => name;

  @override
  String getShowName() => name;

  @override
  bool getIsChecked() => isChecked;

  @override
  void setIsChecked(bool isChecked) {
    this.isChecked = isChecked;
  }

  String get path {
    switch (name) {
      case '隐患制度':
        return '/standard//hazardInvestigation/getHazardInvestigationPage';
      case '隐患整改通报':
        return '/standard//RiskControlAndHazardManagement/getRiskManagementPage';
      default:
        return '';
    }
  }
}